package com.cmy.web.query;

import com.cmy.webCore.query.PageQuery;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @Author:Cmy
 * @Date:2023-11-08 10:53
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
public class TestQuery extends PageQuery {

    /**
     * 名称
     */
    @NotBlank(message="FIELD_CANNOT_BE_EMPTY")
    private String name;

    /**
     * 年龄
     */
    @NotNull(message="FIELD_CANNOT_BE_EMPTY")
    private Integer age;

}

    